<?php
namespace Home\Controller;
use Think\Controller;
use Home\Biz\CommonBiz;

class IndexController extends Controller {
    public function index(){
		//验证当前用户是否登陆
		$user_id = cookie('login_user_id');
		if(empty($user_id)){
			//未登录
			redirect(C('AdminConfig.login_page'));
			return;
		}else{
			redirect(C('AdminConfig.jump_page'));
		}
    }
    
    public static function convertNull($obj){
    	if($obj ==null){
    		return "";
    	}
    	return $obj;
    }
    
    
    public function  test(){

    	$time = strtotime('2016-06-28 00:00:00');
    	
    	$order_info_en = M('order_info')->where("third_order_id = '1713947845235928'")->find();
    	
    	echo $time-strtotime($order_info_en['order_date']);
    	
    	
    }
    
    
    public function testrule(){
    	return ;
    }
    
}